package com.ybu.oodd.utils.time;

import com.ybu.oodd.utils.redis.RedisUtil;
import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class MyInit {

    @Autowired
    private ScheduledTaskService scheduledTaskService;

    @PostConstruct
    public void init() {
        log.info("✅ 初始化任务执行：vip");
        //vip校验
        scheduledTaskService.Vip();
    }
}